package 笔试.泰隆银行.单词逆序;

import java.util.Scanner;
import java.util.StringJoiner;

public class Solution {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] s = scan.nextLine().split(" ");
        StringJoiner joiner = new StringJoiner(" ");
        for (int i = s.length - 1; i >= 0; i--) {
            joiner.add(s[i]);
        }
        System.out.println(joiner);
    }
}
